import request from '@/utils/request'


export function createYzKind(data) {
  return request({
    url: '/api/YzKind/save',
    method: 'post',
    data
  })
}

export function delYzKind(id) {
  return request({
    url: '/api/YzKind/del/'+id,
    method: 'post'
  })
}


export function batchDel(data) {
  return request({
    url: '/api/YzKind/batch/del',
    method: 'post',
    data
  })
}

export function editYzKind(data) {
  return request({
    url: '/api/YzKind/update',
    method: 'post',
    data
  })
}



export function getInfo(id) {
  return request({
    url: '/api/YzKind/get/'+id,
    method: 'get',
    params: { id }
  })
}


export function getPageYzKind(query) {
  return request({
    url: '/api/YzKind/getPage',
    method: 'post',
    data: query
  })
}

export function getListYzKind(query) {
  return request({
    url: '/api/YzKind/getList',
    method: 'post',
    data: query
  })
}




